<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">
	
{
	let a = 1;
	var b = 2;
}

alert(b); 
alert(a);

</script>

</body>
</html>